
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dev_gpio, LOG_LEVEL_INF);

static const struct gpio_dt_spec backlight_ctrl = GPIO_DT_SPEC_GET(DT_NODELABEL(backlight_pin), gpios);

static int display_backlight_init(void)
{
	if (gpio_pin_configure_dt(&backlight_ctrl, GPIO_OUTPUT_INACTIVE) != 0)
	{
		LOG_ERR("Failed configure power control pin");
		return -ENODEV;
	}

	return 0;
}

SYS_INIT(display_backlight_init, POST_KERNEL, 0);

